package com.example.bookstore.mapper;

import com.example.bookstore.entity.User;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface UserMapper {

    void insert(User user);
    User select(int id);
    void delete(int id);
    void update(@Param("user") User user, int id);
    String selects(String thing,int id);
    ArrayList<User> selectAll();
}
